import request from "@/utils/request";

export function search() {
  return request({
    url: "/api/videoSearch/search",
    method: "get",
  });
}
export function findAllVideo(pageNum: number, pageSize: number) {
  return request({
    url: "/api/videoSearch/findAllVideo",
    method: "get",
    params: {
      pageNum: pageNum,
      pageSize: pageSize,
    },
  });
}
export function findVideoByTitle(pageNum: number, pageSize: number, title: string, type: number){
  return request({
    url: "/api/videoSearch/findVideoByTitle",
    method: "get",
    params: {
      pageNum: pageNum,
      pageSize: pageSize,
      title: title,
      type: type
    },
  });
}
